package day_2022_12_to_3.year2023;

/**
 * @author haomin
 * @date 2023/01/03 23:14
 **/
public class Day1_3_Num2042 {
    class Solution {
        public boolean areNumbersAscending(String s) {
            s = s.trim();
            int pre = 0;
            String[] strs = s.split(" ");
            for(String str : strs) {
                if(str.length() == 0) continue;
                if(Character.isDigit(str.charAt(0))) {
                    int cur = Integer.parseInt(str);
                    if(pre < cur) pre = cur;
                    else return false;
                }
            }
            return true;
        }
    }
}